package com.example.springsecurity.cn.paranoid.service.impl;

import com.example.springsecurity.cn.paranoid.bean.User;
import com.example.springsecurity.cn.paranoid.mapper.UserMapper;
import com.example.springsecurity.cn.paranoid.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper mapper;

    @Override
    public User queryUserById(int id) {
        return mapper.queryUserById(id);
    }
}
